package com.zhiyou100.util.excel;

/**
 * @author yang
 * @version 1.0.0
 * @date 2020-09-27 22:37
 */
public class MyStringUtils {

    private MyStringUtils() {}

    private static boolean isBlank(final CharSequence cs) {
        int strLen;
        if (cs == null || (strLen = cs.length()) == 0) {
            return true;
        }
        for (int i = 0; i < strLen; i++) {
            if (!Character.isWhitespace(cs.charAt(i))) {
                return false;
            }
        }
        return true;
    }

    public static boolean isNotBlank(final CharSequence cs) {
        return !isBlank(cs);
    }
}
